go/types.Struct.NumFields (method)
19 uses
go/types (current package)
mono.go#L253: for i := 0; i < typ.NumFields(); i++ {
predicates.go#L213: if x.NumFields() == y.NumFields() {
sizes.go#L150: n := t.NumFields()
sizes.go#L226: if T.NumFields() > 0 {
sizes.go#L231: if len(offsets) != T.NumFields() {
struct.go#L42: func (s *Struct) NumFields() int { return len(s.fields) }
unify.go#L425: if x.NumFields() == y.NumFields() {
golang.org/x/exp/apidiff
compatibility.go#L166: for i := 0; i < s.NumFields(); i++ {
compatibility.go#L229: for i := 0; i < s.NumFields(); i++ {
correspondence.go#L79: for i := 0; i < old.NumFields(); i++ {
correspondence.go#L80: if i >= new.NumFields() {
correspondence.go#L92: return old.NumFields() == new.NumFields()
golang.org/x/tools/internal/gcimporter
bexport.go#L432: if trace && t.NumFields() > 0 {
bexport.go#L437: p.int(t.NumFields())
bexport.go#L438: for i := 0; i < t.NumFields(); i++ {
iexport.go#L772: n := t.NumFields()
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)